<h1>My Wishlist</h1>

Here are all the movies in your wishlist. You can also see what movies are currently lent out.<br /><br />
Collection Options: <a href="index.php?what=wishlist&amp;do=email">Email your wishlist</a> | <a href="index.php?what=wishlist&amp;do=genhtml">Genreate HTML page (print)</a><br /><br />

<table width="100%">
	<tr>
		<td>{mm_alpha key="filter"}</td>
		<td>Genre
			<select onChange="if(this.value != 'null') document.location.href = 'index.php?what=wishlist&amp;genre='+this.value;">
				<option value="null">Select A Genre</option>
				<!--<option value="null"></option>-->
			{foreach from=$genres item=g name=genres}
				<option value="{$g.id}" {if $g.id == $content.genre}selected{/if}>{$g.name}<!--&nbsp;&nbsp;&nbsp;[{$g.movie_count}]--></option>
			{/foreach}
			</select>&nbsp;
		</td>
		<td align="right">
			<form method="get" action="index.php">
			<input type="hidden" name="what" value="wishlist" />
			<input type="hidden" name="filter" value="{$content.filter}" />
			<input type="hidden" name="genre" value="{$content.genre}" />
			<input type="text" name="search" value="{$content.search}" />
			<input type="submit" value="Search" /><br />
			<a href="index.php?what=wishlist&amp;do=search">Advanced Search</a> | <a href="index.php?what=wishlist">Reset Results</a>
			</form>
		</td>
	</tr>
</table>
<form method="post" action="index.php" id="frm_wishlist">
<input type="hidden" name="what" value="wishlist" />
<input type="hidden" name="do" value="remove" />
<table class="data_table" width="100%" cellpadding="5" cellspacing="0">
	<tr class="data_table_header">
		<td width="1%"><input type="checkbox" id="select_all" /></td>
		<td>Title</td>
		<td>Available?</td>
		<td>Entered</td>
		<td></td>
	</tr>
	{if $content.movies}
		{foreach from=$content.movies item=m}
		<tr class="{cycle values="data_table_row_1,data_table_row_2"}">
			<td><input type="checkbox" name="id[]" value="{$m.id}" /></td>
			<td>{$m.title}</td>
			<td>{if $m.available}<strong style="color: red;">Yes</strong><!-- [<a href="http://localhost/movies/index.php?what=members&amp;do=borrow&amp;movie_id={$m.id}">Request Borrow</a>]-->{else}No{/if}</td>
			<td>{$m.created|date:$config.date_format_long}</td>
			<td align="right">
				<a title="Remove this title from your wishlist" href="index.php?what=wishlist&amp;do=remove&amp;id={$m.id}">Remove</a> |
				<a href="index.php?what=movie&amp;do=view&amp;id={$m.id}">View</a> |
				{imdb url=$m.imdb_url} |
				<a href="index.php?what=mymovies&amp;do=add&amp;id={$m.id}">Add to collection</a> |
				<a href="#" onclick="movie_list_add({$m.id});">MARK</a>
			</td>
		</tr>
		{/foreach}
	{else}
	<tr>
		<td colspan="5" align="center">You currently have no movies in your collection.</td>
	</tr>
	{/if}
</table>
<img src="templates/{$config.smarty_template}/images/up_arrow.gif" alt="Do with selection" /> Do With Selection:
<a href="#" onclick="document.frm_wishlist.submit();">Remove from wishlist</a> |
<a href="#" onclick="add_collection(gId('frm_wishlist'));">Add to collection</a>
</form>
<script type="text/javascript" language="javascript">init_select_all('frm_wishlist');</script>
{pagination pagination=$content.pagination}